//
//  PAConstants.h
//  PAMobileWallet
//
//  Created by Gavin Zhang on 7/14/13.
//  Copyright (c) 2013 平安付. All rights reserved.
//

#ifndef PAMobileWallet_PAConstants_h
#define PAMobileWallet_PAConstants_h

#define DocumentsPath [NSHomeDirectory() stringByAppendingPathComponent: @"Documents"]
#define ImgCacheDir @"imgCacheDir"
#define VoiceCacheDir @"voiceCacheDir"


#if  TARGET_IPHONE_SIMULATOR
#define HOST_IP         @"192.168.15.201"  
#define HOST_PORT       2901
#else
#define HOST_IP         @"test.172.com"
#define HOST_PORT       2901
#endif

typedef enum {
    AT_Common_Account,//普通账户
    AT_Public_Account,//公共账户
}AccountType;

typedef enum {
    BCT_DEBIT_CARD,   //信用卡
    BCT_CREDIT_CARD,  //借记卡
    BCT_CUNZHE_CARD,  //存折
}BankCardType;

typedef enum {
    TT_Remit_Trade = 2,//转账
    TT_Withdraw_Trade,//提现
}TradeType;

typedef enum {
    AST_Register_Step1_Account = 1,//1.	注册中的状态（头像未上传
    AST_Active_Account,//2.	激活状态
    AST_Freezen_Account,
    AST_Quit_Account,
    AST_UnRegister_Account
}AccountStatusType;

typedef enum {
    TST_Failed = 2,//交易失败
    TST_Success = 1,//交易成功  
    TST_WaitAccept = 4,//等待收款
    /*
     * 本地使用
     */
    TST_Sending    = 100,//发送中
}TradeStatusType;
typedef enum {
    TDT_Out = 1,// 支出
    TDT_Income =2,// 收入
}TradeDirectionType;

typedef enum {
    Prepaid_VC ,  // 未绑卡引导绑卡，绑卡成功后，返回到充值界面（提现相同）
    Personal_VC,  // 登录成功后，正常开通绑卡后返回到个人中心
    RegisterPersonal_VC,  //注册成功后引导绑卡，绑卡成功后返回到个人中心
}GotoOtherControllerType;   // 绑卡成功后返回到的不同的页面

#define k_Prepaid_VC            @"Prepaid_VC"
#define k_Personal_VC           @"Personal_VC"
#define k_RegisterPersonal_VC   @"RegisterPersonal_VC"

#define k_rspBuffer @"rspBuffer"
#define K_reqIsBlockUI @"reqIsBlockUI"
#define k_manReq_delegate @"manReqDelegate"
/*
 * 接口请求参数各个字段 关键字
 */
#define k_operationType @"operationType"
#define k_clientId @"clientId"
#define k_sessionId @"sessionId"
#define k_loginId @"loginId"
#define k_loginPassword @"loginPassword"
#define k_targetId @"targetId"
/*
 * 接口返回参数各个字段 关键字
 */

#define k_resultCode @"resultCode"
#define k_resultMsg  @"resultMsg"
#define k_userInfo @"userInfo"

#define k_controllerPublicKey       @"controllerPublicKey"
#define k_securityPublicKey         @"securityPublicKey"
#define k_timestamp                 @"timestamp"

#define k_realName @"realName"
#define k_account @"account"
#define k_accountType @"accountType"
#define k_headImageUrl @"headImageUrl"
#define k_phoneNum @"phoneNum"
#define k_accountStatus @"accountStatus"
#define k_headImageDigest @"headImageDigest"

#define k_balance @"balance"
#define K_availableBalance @"availableBalance"
#define k_idCardNo @"idCardNo"
#define k_bankCardInfos @"bankCardInfos"

#define k_bankCardNum @"bankCardNum"
#define k_bankId @"bankId"
#define k_bankCardType @"bankCardType"
#define k_bankCardId @"bankCardId"
#define k_bankName @"bankName"
#define k_bankMark @"bankMark"
#define k_timeLineInfos @"timeLineInfos"

#define k_createdDate @"createdDate"
#define k_lastTradeAmount @"lastTradeAmount"
#define k_lastTradeDirection @"lastTradeDirection"
#define k_targetInfo @"targetInfo"
#define k_lastTradeStatus @"lastTradeStatus"
#define k_updateDate @"updateDate"
#define k_tradeId @"tradeId"
#define k_tradeDirection @"tradeDirection"
#define k_tradeStatus @"tradeStatus"

//支付转账  请求1
#define k_targetPhoneNum @"targetPhoneNum"

//支付转账  请求2
#define k_tradeType @"tradeType"
#define k_targetId @"targetId"
#define k_startDate @"startDate"
#define k_endDate @"endDate"

//支付转账  请求3
#define k_payAmount @"payAmount"
#define k_payPassword @"payPassword"
#define k_mediaType @"mediaType"
#define k_mediaComment @"mediaComment" 
#define k_clientPaymentId @"clientPaymentId" 
#define k_targetPhoneNum @"targetPhoneNum"
#define k_targetRealName @"targetRealName"
//绑卡请求 1
#define k_bankCardNo @"bankCardNo"

//绑卡请求 2
#define k_phoneNum @"phoneNum"

//绑卡请求 3
#define k_messageCode @"messageCode"

//注册第一步 请求1  验证手机号
#define k_mobilePhoneNum @"mobilePhoneNum" //注册手机号
//  请求3
#define k_messageCode    @"messageCode"    // 短信验证码
#define k_useType        @"useType"        // 注册或者绑卡

//上传头像
#define k_imageType      @"imageType"
#define k_headImage      @"headImage"

//实名认证
#define k_realName       @"realName"
#define k_idCardNo       @"idCardNo"
#define k_idCardType     @"idCardType"
#define k_loginPassword  @"loginPassword"
#define k_payPassword    @"payPassword"


//充值
#define k_bankCardId        @"bankCardId"
#define k_rechargeAmount    @"rechargeAmount"
#define k_payPassword       @"payPassword"
#define k_clientPaymentId   @"clientPaymentId"

//提现
#define k_withdrawAmount    @"withdrawAmount"

/*
 * notification 定义
 */
#define NOT_ViewDidUnload @"viewDidUnload"
#define NOT_NeedRelogin @"needRelogin"
#define NOT_LoginSuccess @"loginSuccess"
#define NOT_SelectedCard @"selectedCard"

#define GET_VALID_CODE_TIMER    60  //短信验证码倒计时
#define MSG_DYNAMIC_CODE_WAIT   @"%d秒后重发"

#define BANKCARD_MARK     @"ABC,CCB,CEB,CITIC,CMB,CMBC,ICBC,PSBCC,BOC"

#define BANKCARD_LOGO    @"a广发银行.png,a兴业银行.png,a招商银行.png,a中国工商银行.png,a中国光大银行.png,a中国建设银行.png,a中国民生银行.png,a中国农业银行.png,a中国邮政储蓄银行.png,a中信银行.png"

#endif
